﻿
namespace Test30.Engine
{
    public static class TileTypeExtensions
    {
        public static bool IsPassable(this TileType type)
        {
            return (type != TileType.Wall) &&
                   (type != TileType.DoorClosed) &&
                   (type != TileType.RoofDark) &&
                   (type != TileType.RoofLight) &&
                   (type != TileType.LowWall);
        }

        public static bool IsTransparent(this TileType type)
        {
            return (type != TileType.Wall) &&
                   (type != TileType.DoorClosed) &&
                   (type != TileType.RoofDark) &&
                   (type != TileType.RoofLight);
        }
    }
}
